package scau.redi.social_platform.dao;

import org.apache.ibatis.annotations.Param;
import scau.redi.social_platform.domain.pojo.UserInfo;

import java.util.List;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Integer id);

    UserInfo selectByUsername(String username);

    UserInfo selectByUsernameAndPassword(String username, String password);

    List<UserInfo>  selectAllUser();

    int selectLastInsertId();

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    List<UserInfo>  selectByUsernameLike(@Param("username") String username);
}